import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

//定义一个整数数组，求数组中所有数的和 以及乘积
public class homework32 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<Integer> list = Arrays.asList(1, 2, 3, 4, 5);
        int n=sc.nextInt();
        for(int i=0;i<n;i++){
            list.add(sc.nextInt());
        }
        int sum = 0;
        int product = 1;
        for (int i : list) {
            sum += i;
            product *= i;
        }
        System.out.println("数组中所有数的和为：" + sum);
        System.out.println("数组中所有数的乘积为：" + product);
    }
}
